package it.application.smoc;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;

public class OrderInTheWorldActivity extends CustomWindow {

	private WebView webView;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_in_the_world);
        webView = (WebView) findViewById(R.id.webview);
		String data= Utilities.leggiDaFileAssets(this,"OrdineNelMondo");
		webView.loadDataWithBaseURL("file:///android_asset/", data, "text/html", "utf-8", "");
		//webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
		webView.getSettings().setBuiltInZoomControls(true);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_order_in_the_world, menu);
        return true;
    }
    
    public void GoToGrandMaster(View v){
    	Intent intent=new Intent(OrderInTheWorldActivity.this, GrandMasterActivity.class);
    	startActivity(intent);
    }
    public void GoToGallery(View v){
    	Intent intent=new Intent(OrderInTheWorldActivity.this,ImageGalleryActivity.class);
    	startActivity(intent);
    }
    
}
